Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Consider the machine M:Q. The language recogn... Start Learning for Free
Consider the machine M: 
Q. The language recognized by M is :
  • a)
    {w ∈ {a, b}* / every a in w is followed by ex­actly two b's}
  • b)
    {w ∈ {a, b}* every a in w is followed by at least two b’}
  • c)
    {w ∈ {a, b}* w contains the substring 'abb'}
  • d)
    {w ∈ {a, b}* w does not contain 'aa' as a substring}
Correct answer is option 'B'. Can you explain this answer?
Verified Answer
Consider the machine M:Q. The language recognized by M is :a){w ∈...
Here w ∈ {a, b}* means w can be any string from the set of {a, b}* and {a, b}* is set of all strings composed of a and b (any string of a and b that you can think of) like null, a, b, aaa, abbaaa, bbbbb, aaaaa, aaaabbbbaabbababab etc.
These type of questions are frequently asked in GATE, where it is asked to choose best fit language among the options. To slove the question like this, there is a better way, we try to eliminate wrong options by choosing testing strings intelligently until we are left with one right option.As given in question, let’s we try to eliminate option (A), it recognizes only those string (composed of a and b) in which every a in w is followed by exactly two b’s , so if we take string abbb(three b’s), then it is accepted by machine , so this options is wrong. Now we try to eliminate option (C), it recognizes only those strings(composed of a and b) in which w contains the substring ‘abb’, so if we take string abbaa (has substring abb), then it is not accepted by machine, so this options is also wrong. Now we try to eliminate option (D), it recognizes only those string(composed of a and b) in which w does not contains ‘aa’ as a substring , so if we take string abbaba(‘aa’ not as a substring), then it is not accepted by machine ,so this options is also wrong. Only option with which we are left, is option (b) in which every a in w is followed by at least two b’ ,is correct.So answer is option (B).
View all questions of this test
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Consider the machine M:Q. The language recognized by M is :a){w ∈ {a, b}* / every a in w is followed by ex­actly two b's}b){w ∈ {a, b}* every a in w is followed by at least two b’}c){w ∈ {a, b}* w contains the substring 'abb'}d){w ∈ {a, b}* w does not contain 'aa' as a substring}Correct answer is option 'B'. Can you explain this answer?
Question Description
Consider the machine M:Q. The language recognized by M is :a){w ∈ {a, b}* / every a in w is followed by ex­actly two b's}b){w ∈ {a, b}* every a in w is followed by at least two b’}c){w ∈ {a, b}* w contains the substring 'abb'}d){w ∈ {a, b}* w does not contain 'aa' as a substring}Correct answer is option 'B'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Consider the machine M:Q. The language recognized by M is :a){w ∈ {a, b}* / every a in w is followed by ex­actly two b's}b){w ∈ {a, b}* every a in w is followed by at least two b’}c){w ∈ {a, b}* w contains the substring 'abb'}d){w ∈ {a, b}* w does not contain 'aa' as a substring}Correct answer is option 'B'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Consider the machine M:Q. The language recognized by M is :a){w ∈ {a, b}* / every a in w is followed by ex­actly two b's}b){w ∈ {a, b}* every a in w is followed by at least two b’}c){w ∈ {a, b}* w contains the substring 'abb'}d){w ∈ {a, b}* w does not contain 'aa' as a substring}Correct answer is option 'B'. Can you explain this answer?.
Solutions for Consider the machine M:Q. The language recognized by M is :a){w ∈ {a, b}* / every a in w is followed by ex­actly two b's}b){w ∈ {a, b}* every a in w is followed by at least two b’}c){w ∈ {a, b}* w contains the substring 'abb'}d){w ∈ {a, b}* w does not contain 'aa' as a substring}Correct answer is option 'B'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of Consider the machine M:Q. The language recognized by M is :a){w ∈ {a, b}* / every a in w is followed by ex­actly two b's}b){w ∈ {a, b}* every a in w is followed by at least two b’}c){w ∈ {a, b}* w contains the substring 'abb'}d){w ∈ {a, b}* w does not contain 'aa' as a substring}Correct answer is option 'B'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Consider the machine M:Q. The language recognized by M is :a){w ∈ {a, b}* / every a in w is followed by ex­actly two b's}b){w ∈ {a, b}* every a in w is followed by at least two b’}c){w ∈ {a, b}* w contains the substring 'abb'}d){w ∈ {a, b}* w does not contain 'aa' as a substring}Correct answer is option 'B'. Can you explain this answer?, a detailed solution for Consider the machine M:Q. The language recognized by M is :a){w ∈ {a, b}* / every a in w is followed by ex­actly two b's}b){w ∈ {a, b}* every a in w is followed by at least two b’}c){w ∈ {a, b}* w contains the substring 'abb'}d){w ∈ {a, b}* w does not contain 'aa' as a substring}Correct answer is option 'B'. Can you explain this answer? has been provided alongside types of Consider the machine M:Q. The language recognized by M is :a){w ∈ {a, b}* / every a in w is followed by ex­actly two b's}b){w ∈ {a, b}* every a in w is followed by at least two b’}c){w ∈ {a, b}* w contains the substring 'abb'}d){w ∈ {a, b}* w does not contain 'aa' as a substring}Correct answer is option 'B'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Consider the machine M:Q. The language recognized by M is :a){w ∈ {a, b}* / every a in w is followed by ex­actly two b's}b){w ∈ {a, b}* every a in w is followed by at least two b’}c){w ∈ {a, b}* w contains the substring 'abb'}d){w ∈ {a, b}* w does not contain 'aa' as a substring}Correct answer is option 'B'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev